<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录页面</title>
<style type="text/css">
body {
	font-size: 12px;
	width: 1002px;
	margin: 0 auto;
	padding: 0px;
	background: url(<%= request . getContextPath() %>/img/body_bg.jpg)
		#02BDF0 repeat-x;
	font-family: Verdana, Arial, Helvetica, sans-serif
}

/*登陆页面*/
#login {
	background: url(<%= request.getContextPath() %>/login.jpg )
		no-repeat 0 0;
	width: 1002px;
	height: 600px;
}

#login div {
	width: 350px;
	height: 170px;
	margin: 0 auto;
	padding: 100px 0 0 0;
}

#login div form {
	display: block;
	margin: 0px;
	padding: 0px;
}

#login div form p {
	margin: 0px;
	padding: 0px;
	display: block;
	height: 40px;
	line-height: 40px;
}

#login div form p label {
	display: block;
	float: left;
	width: 85px;
	text-align: center;
	color: #fff;
}

#login div form p input {
	display: block;
	float: left;
}

.inp_t {
	width: 220px;
	color: #999;
	height: 22px;
	line-height: 22px;
	border: #0572AB solid 1px;
	background: #96F29F;
	margin: 8px 0 0;
}


.bt_2 {
	width: 80px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
	margin: 28px 10px 0 10px;
	background: url(<%=request.getContextPath()%>/img/bt_2.jpg) no-repeat 0 0;
	color: #0A7CB7;
	border: none;
}

#login div form p.w_220 {
	width: 210px;
	padding: 0 0 0 90px;
	height: 50px;
}
</style>
</head>

<body>
<%
	//移除session中的用户信息
	//session.removeAttribute("__SATURN_AUTORITY_USER__");
	//String loginErrorMessage = (String) session
		//	.getAttribute("__LOGIN_ERROR_MESSAGE__");
	//String yhip = request.getRemoteAddr();
%>
<div id="login">
<div>
<%
		//if (loginErrorMessage != null && !loginErrorMessage.equals("")) {
		//out.print(loginErrorMessage);
	//}
%>
<form method="post" name="loginForm" target="_parent"
	action="<%=request.getContextPath() %>/edu.ccut.saturn.authority.impl::/loginModule/action/Login.action">
<p><label>登录用户:</label><input name="userid" 
	type="text" class="inp_t" onblur="this.value=this.value.replace(/\'/g,'');" /></p>
<p><label>登录密码：</label><input name="password" 
	type="password" class="inp_t" /></p>
<p class="w_220"><input type="submit" class="bt_2" value="登录" />
<input type="reset" class="bt_2" value="重置" /></p>
</form>
</div>
</div>
<script type="text/javascript">
if('<%=session.getAttribute("__LOGIN_ERROR_MESSAGE__")%>'!='null'){
alert('<%=(String)session.getAttribute("__LOGIN_ERROR_MESSAGE__")%>');
}
</script>
</body>
</html>
